package com.wisdytech.ccdserver.matchwarning.serveice.impl;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wisdytech.ccdserver.common.es.EsOperationUtils;
import com.wisdytech.ccdserver.matchwarning.dao.IWarningMesProductionDao;
import com.wisdytech.ccdserver.matchwarning.dao.IWarningSandstoneImageDao;
import com.wisdytech.ccdserver.matchwarning.model.WarningMesProduction;
import com.wisdytech.ccdserver.matchwarning.model.WarningSandstoneImage;
import com.wisdytech.ccdserver.matchwarning.serveice.IWarningMesProductionService;
import com.wisdytech.ccdserver.matchwarning.serveice.IWarningSandstoneImageService;
import com.wisdytech.common.bean.BasePage;
import com.wisdytech.common.bean.Filter;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author sunjinxin
 * @date 2024/5/20
 */
public class WarningSandstoneImageServiceImpl extends ServiceImpl<IWarningSandstoneImageDao, WarningSandstoneImage> implements IWarningSandstoneImageService {

    @Autowired
    EsOperationUtils esSourceUtils;

    @Override
    public IPage<WarningSandstoneImage> getWarningSandstoneImageList(Filter filter) {
        Page<WarningSandstoneImage> page = BasePage.getPage(filter);
        IPage<WarningSandstoneImage> warningSandstoneImageIPage = baseMapper.getWarningSandstoneImageList(page,filter.getQueryMap());
        return  warningSandstoneImageIPage;
    }

    @Override
    public void syncImageNum() {

    }
}
